Skip to main content

openFiles

Type

function

Summary

Returns a list of files that have been opened with the open file command, but not yet closed with the close file command.

Syntax

the openFiles
openFiles()

Description

Use the openFiles function to find out which files need to be closed, or to check whether a file is already open before reading from it or writing to it.

The list of file paths is in the same order that the files were opened.

Open files that were not opened by LiveCode are not included in the list returned by the openFiles function.

Examples

the openFiles
if it is not among the lines of the openFiles then open file it
repeat until the openFiles is empty

command: close file, open file

control structure: function

function: files

glossary: command, return, file path

keyword: file

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?